<?php /* Smarty version 2.6.18, created on 2009-03-15 01:29:52
         compiled from search_piclist.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'search_piclist.html', 26, false),array('function', 'webcontrol', 'search_piclist.html', 39, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>视听词典</title>
<link href="templates/css/picandtext.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="templates/js/jquery.js"></script>
<style type="text/css">
td.row{
    width:80px;
}
#topNavBar{
    margin-bottom:30px;
}
#word p{
    margin-left:20px;
}
#word p span{
    margin-right:20px;
}
</style>
<script type="text/javascript">
$(function(){
});
function get_explain(word,no,obj){
      $.getJSON("<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'study','action' => 'explain'), $this);?>
",
        {word:word,no:no},
        function(data){
        obj.replaceWith("<p>"+data.pic_text+"</p><p>"+data.pic_text_zh+"</p>");
        }); 
}
function clickall(){
    $(":button").click();
}
</script>
</head>
<body>
    <div id="content">
    <?php echo $this->_plugins['function']['webcontrol'][0][0]->_pi_func_webcontrol(array('type' => 'menu','name' => 'mymenu'), $this);?>

        <div id="word">
            <div><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'sentence','action' => 'listbyword','word' => $this->_tpl_vars['word']['Word']), $this);?>
">例句</a></div>
            <p><span>id:<?php echo $this->_tpl_vars['word']['Id']; ?>
</span><span>word:<?php echo $this->_tpl_vars['word']['Word']; ?>
</span><span>yinbiao:<?php echo $this->_tpl_vars['word']['YinBiao']; ?>
</span></p>
            <p><span><pre>汉语解释:<br /><?php echo $this->_tpl_vars['word']['HanYuJieshe']; ?>
</pre></span></p>
            <p><span><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'explain','action' => 'edit','id' => $this->_tpl_vars['word']['Id']), $this);?>
" target="_blank" >编辑</a></span></p>
        </div>
     <table id="mytable" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series">
     <caption></caption>
     <tr><th scope="col">图片</th><th scope="col">id</th><th scope="col">No</th><th scope="col">word</th><th scope="col">操作</th><th scope="col"><a href="#" onclick="clickall();">描述</a></th><th scope="col">排序</th></tr>
   <?php $_from = $this->_tpl_vars['pics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['listitem']):
?>
   <tr>
       <td class="row"><img src="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'edit','action' => 'showbysize','id' => $this->_tpl_vars['listitem']['id']), $this);?>
" border=0 alt=""></td>
       <td class="row"><?php echo $this->_tpl_vars['listitem']['id']; ?>
</td>
       <td class="row"><?php echo $this->_tpl_vars['listitem']['No']; ?>
</td>
       <td class="row"><?php echo $this->_tpl_vars['listitem']['Word']; ?>
</td>
       <td class="row"><p><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'pic','action' => 'edit','id' => $this->_tpl_vars['listitem']['id']), $this);?>
" target="_blank" >编辑</a></p><p><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'pic','action' => 'del','id' => $this->_tpl_vars['listitem']['id']), $this);?>
" target="_blank" >删除</a></p></td>
       <td class=""><input type="button" onclick="get_explain('<?php echo $this->_tpl_vars['listitem']['Word']; ?>
',<?php echo $this->_tpl_vars['listitem']['No']; ?>
,$(this));" name="pic_text" value="获取"</td>
       <td class="row"><?php echo $this->_tpl_vars['listitem']['rank']; ?>
</td>
  </tr>
    <?php endforeach; endif; unset($_from); ?>
        </table>

    </div>
</body>
</html>